package cn.yunyichina.provider.base.vo;

import cn.yunyichina.provider.framework.annotation.validate.AnnotationValidable;
import cn.yunyichina.provider.framework.annotation.validate.ValidateNotNullAndNotEmpty;
import cn.yunyichina.provider.framework.annotation.validate.ValidateSize;
import cn.yunyichina.provider.framework.annotation.validate.ValidateStringIn;

public class ConvertUserPatcardVoRequest implements AnnotationValidable {

    /*医院编码*/
    @ValidateNotNullAndNotEmpty
    @ValidateSize(minSize = "0", maxSize = "50")
    private String hospitalCode;
    public void setHospitalCode(String hospitalCode) {
        this.hospitalCode = hospitalCode;
    }
    public String getHospitalCode() {
        return hospitalCode;
    }

    /*5：身份证 1：就诊卡号或处方号*/
    @ValidateNotNullAndNotEmpty
    @ValidateSize(minSize = "0", maxSize = "2")
    @ValidateStringIn(value = "1,2,3,4,5,6,7,8,9,10,11,12")
    private Short patCardType;
    public void setPatCardType(Short patCardType) {
        this.patCardType = patCardType;
    }
    public Short getPatCardType() {
        return patCardType;
    }

    /*卡号*/
    @ValidateNotNullAndNotEmpty
    private String patCardNo;
    public void setPatCardNo(String patCardNo) {
        this.patCardNo = patCardNo;
    }
    public String getPatCardNo() {
        return patCardNo;
    }

    /*当诊疗卡类型为身份证时（patCardType = 5），患者姓名不能为空； 当诊疗卡类型不是身份证时，患者姓名为空字符串；*/
    private String patName;
    public void setPatName(String patName) {
        this.patName = patName;
    }
    public String getPatName() {
        return patName;
    }


}
